import routes from './routes'
import { BrowserRouter, Route, Routes } from 'react-router-dom'

const App = () => {
	return (
		<BrowserRouter>
			<Routes>
				{
					routes.length > 0 && routes.map((v, i) => {
						return <Route key={i} path={v.path} element={<v.element></v.element>}></Route>
					})
				}
			</Routes>

		</BrowserRouter>
	)

}

export default App